#ifndef RECTANGLE_H
#define RECTANGLE_H

#include <SDL/SDL.h>

#include "../../DisplayObject.h"
#include "../../../math/Point2D.h"
#include "../../../utils/data_types.h"

class Rectangle : public DisplayObject
{
    public:
        
        Rectangle(const Point2D& size, const Point2D& position, uint32 background_color);
        
        ~Rectangle();
        
        void Render(SDL_Surface* surface);
        
    protected:
        
        int GetX() const;
        
        int GetY() const;
        
        int GetWidth() const;
        
        int GetHeight() const;
        
        SDL_Rect offset;
        
    private:
        
        uint32 _background_color;
};

#endif
